import { VFC } from 'react';
import { Button, Popconfirm } from 'antd';
import { DeleteOutlined } from '@ant-design/icons';
export const Delete: VFC<{onClick: () => void}> = (props) => {
    const onSure = () => {
        props.onClick();
    }
    return (
        <Popconfirm
            title="确认删除？"
            onConfirm={onSure}
        >
            <Button type="link" style={{color: '#ff4d4f'}}>
                <DeleteOutlined /> 删除              
            </Button>
        </Popconfirm>
    );
}